package com.sylli.oeuf.server.object.transferable;

public class MapBlockTO extends BasedTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8870686376191631419L;
	
	private int blockId;
	
	private int mapId;
	
	private int flag;
	
	private String param;

	private int terrainType;
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof MapBlockTO) {
			MapBlockTO mb = (MapBlockTO) obj;
			return mb.blockId == blockId
				&& mb.mapId == mapId
				&& mb.flag == flag
				&& mb.param.equals(param)
				&& mb.terrainType == terrainType;
		}
		return false;
	}

	@Override
	public String toString() {
		return "MapBlock: id=" + blockId
			+ ", mapId=" + mapId
			+ ", flag=" + flag
			+ ", param=" + param
			+ ", terrainType=" + terrainType;
	}

	public int getBlockId() {
		return blockId;
	}

	public void setBlockId(int id) {
		this.blockId = id;
	}

	public int getMapId() {
		return mapId;
	}

	public void setMapId(int map_id) {
		this.mapId = map_id;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public int getTerrainType() {
		return terrainType;
	}

	public void setTerrainType(int terrainType) {
		this.terrainType = terrainType;
	}

}
